package ioc;

/**
 * Created by IntelliJ IDEA.
 * User: zm
 * Date: 2023/4/9
 */
public class Bottom {
    private Tire tire;

    public Bottom(Tire tire){//注进来,告诉别人要用
        this.tire = tire;
    }

    public void init(){
        //依赖轮胎
        System.out.println("执行Bottom");
        tire.init();
    }
}
